package org.mspring.mlog.web.module.admin.self.auth;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.mspring.mlog.web.module.admin.Admin_AbstractWidget;
import org.mspring.platform.config.ConfigService;
import org.mspring.platform.web.freemarker.widget.stereotype.Action;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 第三方授权页面
 *
 * @author Gao Youbo
 * @since 2014年5月19日
 */
@Action
@RequestMapping("/admin/self/auth")
public class Admin_OpenAuthWidget extends Admin_AbstractWidget {
    @Autowired
    private ConfigService configService;

    @RequestMapping("/config")
    public String config(HttpServletRequest request, HttpServletResponse response, Model model) {
        return "/admin/self/auth/config";
    }

    @RequestMapping("/config/save")
    public String config_save(HttpServletRequest request, HttpServletResponse response, Model model) {
        return "/admin/self/auth/config";
    }

}
